<?php
define('ESTATE_PLUGIN', '/srv/www/htdocs/wordpress/wp-content/plugins/estate/');
if($_SERVER['HTTP_HOST'] == 'guidetouni.co.uk')
{
	define('PROCESSOR', '/wordpress/?page_id=10');
	define('LISTING', '/wordpress/?page_id=2');	
}
elseif($_SERVER['HTTP_HOST'] == 'galaxy.saa')
{
	define('PROCESSOR', '/wordpress/?page_id=57');
	define('LISTING', '/wordpress/?page_id=55');

}
else
{
	define('PROCESSOR', '/wordpress/?page_id=28');
	define('LISTING', '/wordpress/?page_id=23');
}

define('ADMINLISTING', '/wordpress/wp-admin/admin.php?page=property-listings');

/** Tell WordPress to run apple_setup() when the 'after_setup_theme' hook is run. */
add_action( 'after_setup_theme', 'apple_setup' );

if ( ! function_exists( 'apple_setup' ) ):
function apple_setup()
{
	// No CSS, just IMG call. The %s is a placeholder for the theme template directory URI.
	define( 'HEADER_IMAGE', '%s/images/fern.jpg' );
	
	// This theme uses wp_nav_menu() in one location.
	
	register_nav_menus( array(
		'primary' => __( 'Primary Navigation', 'apple' ),
	) );

	// This theme allows users to set a custom background
	add_custom_background();
	
	// The height and width of your custom header. You can hook into the theme's own filters to change these values.
	// Add a filter to apple_header_image_width and apple_header_image_height to change these values.
	define( 'HEADER_IMAGE_WIDTH', apply_filters( 'apple_header_image_width', 940 ) );
	define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'apple_header_image_height', 190 ) );
	
}
endif;

/**
 * Register widgetized areas, including two sidebars and four widget-ready columns in the footer.
 *
 * To override apple_widgets_init() in a child theme, remove the action hook and add your own
 * function tied to the init hook.
 *
 * @since Twenty Ten 1.0
 * @uses register_sidebar
 */
 
function apple_widgets_init() {
	// Area 1, located at the top of the sidebar.
	register_sidebar( array(
		'name' => __( 'Primary Widget Area', 'apple' ),
		'id' => 'primary-widget-area',
		'description' => __( 'The primary widget area', 'apple' ),
		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
		'after_widget' => '</li>',
		'before_title' => '<h3 class="widget-title">',
		'after_title' => '</h3>',
	) );

	// Area 2, located below the Primary Widget Area in the sidebar. Empty by default.
	register_sidebar( array(
		'name' => __( 'Secondary Widget Area', 'apple' ),
		'id' => 'secondary-widget-area',
		'description' => __( 'The secondary widget area', 'apple' ),
		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
		'after_widget' => '</li>',
		'before_title' => '<h3 class="widget-title">',
		'after_title' => '</h3>',
	) );

	// Area 3, located in the footer. Empty by default.
	register_sidebar( array(
		'name' => __( 'First Footer Widget Area', 'apple' ),
		'id' => 'first-footer-widget-area',
		'description' => __( 'The first footer widget area', 'apple' ),
		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
		'after_widget' => '</li>',
		'before_title' => '<h3 class="widget-title">',
		'after_title' => '</h3>',
	) );

	// Area 4, located in the footer. Empty by default.
	register_sidebar( array(
		'name' => __( 'Second Footer Widget Area', 'apple' ),
		'id' => 'second-footer-widget-area',
		'description' => __( 'The second footer widget area', 'apple' ),
		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
		'after_widget' => '</li>',
		'before_title' => '<h3 class="widget-title">',
		'after_title' => '</h3>',
	) );

	// Area 5, located in the footer. Empty by default.
	register_sidebar( array(
		'name' => __( 'Third Footer Widget Area', 'apple' ),
		'id' => 'third-footer-widget-area',
		'description' => __( 'The third footer widget area', 'apple' ),
		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
		'after_widget' => '</li>',
		'before_title' => '<h3 class="widget-title">',
		'after_title' => '</h3>',
	) );

	// Area 6, located in the footer. Empty by default.
	register_sidebar( array(
		'name' => __( 'Fourth Footer Widget Area', 'apple' ),
		'id' => 'fourth-footer-widget-area',
		'description' => __( 'The fourth footer widget area', 'apple' ),
		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
		'after_widget' => '</li>',
		'before_title' => '<h3 class="widget-title">',
		'after_title' => '</h3>',
	) );
}
/** Register sidebars by running apple_widgets_init() on the widgets_init hook. */
add_action( 'widgets_init', 'apple_widgets_init' );
